package com.foreknow.oopTest.book;

/**
 * @author shkstart
 * @create 2021-07-26 9:55
 */
public class Book {

    private int bid;//图书编号
    private String bookname;//书名
    private double price;//价格
    private int num;//库存

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Book() {

    }

    public Book(int bid, String bookname, double price, int num) {
        this.bid = bid;
        this.bookname = bookname;
        this.price = price;
        this.num = num;
    }

    public void showAll() {
        System.out.println(this.getBid() + "\t" + this.getBookname() + "\t" + this.getPrice() + "\t" + this.getNum());
    }


}


